package org.jeecg.modules.rencai.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.rencai.bo.NameValueBO;
import org.jeecg.modules.rencai.entity.BasePark;
import org.jeecg.modules.rencai.mapper.BaseParkMapper;
import org.jeecg.modules.rencai.service.IBaseParkService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 基地、园区
 * @Author: jeecg-boot
 * @Date: 2020-04-03
 * @Version: V1.0
 */
@Service
public class BaseParkServiceImpl extends ServiceImpl<BaseParkMapper, BasePark> implements IBaseParkService {
    @Override
    public List<String> queryTypeList(String province,String mainType) {
        return baseMapper.queryTypeList(province,"",mainType);
    }

    @Override
    public List<NameValueBO> countByType(List<String> type,String mainType) {
        return baseMapper.countByType(type,mainType);
    }

    @Override
    public List<NameValueBO> countCityByType(String province, List<String> type,String mainType) {
        return baseMapper.countCityByType(province, type,mainType);
    }

    @Override
    public List<String> queryTypeList(String province, String city, String mainType) {
        return baseMapper.queryTypeList(province,city,mainType);
    }

    @Override
    public List<String> queryProvinceList(String mainType, String type) {
        return baseMapper.queryProvinceList(mainType,type);
    }
}
